#pragma once

#include <string>
#include <stdio.h>
#include "FileOpt.h"

namespace FileOptSpace {
class FileOptWithFd:public FileOpt{
private:
    int m_fd_;
public:
    ~FileOptWithFd();
    explicit FileOptWithFd(const std::string& filePathName, int , mode_t);
    bool s_read(vector<char>& , const uint32_t ) override;
    bool s_write(const vector<char>&,int len) override;
};
}